﻿using System;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 邀请列表
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class invitationList : examView<invitationList>
    {
        /// <summary>
        /// 邀请用户
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examDataAccess.examInvitation[] users;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="examId"></param>
        /// <returns></returns>
        private bool loadView(int examId, int page)
        {
            if (load(examId))
            {
                if (exam.Type == dataModel.exam.type.随时通知考生参加的考试)
                {
                    users = diantou.examDataAccess.tcpCall.examInvitation.get(examId, currentUserId, pageInfo.Size = 40, pageInfo.Page = page, out pageInfo.Count);
                    return true;
                }
                AjaxResponse(webConfig.NotFound404);
            }
            return false;
        }
    }
}
